#include<iostream>
#define max(a,b) (a>b?a:b)
using namespace std;
double Max(double a,double b){
	return a>b?a:b;
}
int main(){
	double a,b,c;
	scanf("%lf%lf%lf",&a,&b,&c);
	printf("%.3lf\n",max(a,max(b,c)));
	printf("%.3lf\n",Max(a,Max(b,c)));
	return 0;
}
